import request from '@/utils/request'

export function getList() {
  return request({
    url: '/system/routerList',
    method: 'get',
  })
}

export function authRouterList(params: any) {
  return request({
    url: '/system/authRouterList',
    method: 'get',
    params,
  })
}

export function saveStaffPostAuthRouter(params: any) {
  return request({
    url: '/system/saveStaffPostAuthRouter',
    method: 'post',
    params,
  })
}

export function saveUserAuthRouter(params: any) {
  return request({
    url: '/system/saveUserAuthRouter',
    method: 'post',
    params,
  })
}
